package org.happen.android.ui;

import org.happen.android.widget.NormalProgressDialog;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;

public class UIHelper
{

	/**
	 * 主题加载对话框
	 * 
	 * @ReqParam context
	 * @return
	 */
	public static ProgressDialog newProgressDialog(Context context)
	{
		ProgressDialog dialog = new ProgressDialog(context); // , R.style.AppTheme_Dialog
		return dialog;
	}

	/**
	 * 主题加载对话框2
	 * 
	 * @ReqParam target
	 * @ReqParam activity
	 * @ReqParam msg
	 * @return
	 */
	public static NormalProgressDialog newNormalProgressDialog(Activity activity, String msg)
	{
		NormalProgressDialog normalProgressDialog = new NormalProgressDialog(activity);
		normalProgressDialog.create();
		normalProgressDialog.setMessage(msg);
		return normalProgressDialog;
	}
}